import request from '@/utils/request'

// 查询停车场统计列表
export function listTcStatistics(query) {
  return request({
    url: '/energy/tcStatistics/list',
    method: 'get',
    params: query
  })
}

// 查询停车场统计详细
export function getTcStatistics(id) {
  return request({
    url: '/energy/tcStatistics/' + id,
    method: 'get'
  })
}

// 新增停车场统计
export function addTcStatistics(data) {
  return request({
    url: '/energy/tcStatistics',
    method: 'post',
    data: data
  })
}

// 修改停车场统计
export function updateTcStatistics(data) {
  return request({
    url: '/energy/tcStatistics',
    method: 'put',
    data: data
  })
}

// 删除停车场统计
export function delTcStatistics(id) {
  return request({
    url: '/energy/tcStatistics/' + id,
    method: 'delete'
  })
}
